<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <!-- vue中提供了 v-on ：事件绑定机制 -->
    <button v-on="{mouseenter: onEnter,mouseleave: onOut}" @click="onClick">点我</button>
    <form @keyup.space="onKeyup" @sumbit.prevent="onSubmit">
      <input type="text">
      <button type="submit">submit</button>
    </form>
  </div>

  <script src="../lib/vue.js"></script>
  <script src="js/main.js"></script>

</body>

</html>
